package sqlanalysisgui.menuaction;

import org.eclipse.jface.action.Action;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.actions.ActionFactory.IWorkbenchAction;

import sqlanalysisgui.dialog.ProjectInfoDialog;

public class ProjectInfoDialogAction extends Action implements IWorkbenchAction {

	private static final String ID = "sqlanalysisgui.menuaction.ProjectInfoDialogAction";
	
	public ProjectInfoDialogAction() {
		// TODO Auto-generated constructor stub
		setId(ID);
	}
	
	@Override
	public void run() {
		openDialog();
	}
	
	@Override
	public void dispose() {
		// TODO Auto-generated method stub
	}
	
	public void openDialog(){
		Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();  
		ProjectInfoDialog dialog = new ProjectInfoDialog(shell);
		dialog.open();
	}

}
